package stu.aistar.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import stu.aistar.model.pojo.Orders;

import java.util.List;
@Component
public interface IOrdersDao extends JpaRepository<Orders,Integer> {
    List<Orders> findOrdersByUserId(Integer userId);
    Orders findOrdersByOrdersNo(String ordersNo);
}
